import styles from './index.css';
import React from 'react';
import Header from './Header';
import  withRouter from "umi/withRouter";

function Layout({children, location}) {
  return(
    <div className={styles.normal}>
      <Header location={location} />
      <div className={styles.content}>
        <div className={styles.main}>
          {children}
        </div>
      </div>
    </div>
  )
}

export default withRouter(Layout);
